• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Help : can I load a byte array as an image ???

Ranch Hand
Posts: 277
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi again.
I would like to display an image in my browser from a "serialised" record :

picture was one of gif/jpg/tif/pdf loaded in Oracle and now converted into a byte array.
I would like to display this picture by re-using existing codes that I have :

First I do note know whether this is possible because in the past few months , I have only used following :

Second, on compiling I get this error :

...cannot resolve symbol
symbol : method getImage (java.net.URL,byte[])
location: class testArea.Tunnel.demoApplet
image = getImage(getDoumentBase(), thisEmpRec.picture);

Please note that thisEmpRec.picture is a byte array (see empRecord.java )
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic