Getting ErrorVenkateswarlu April 1, 2011 at 10:57 AM
After executing the above code i am getting file unsupported Exception what should i do please help me in retrieving the image from the database without using servelet
hi, im trying ot do the same way but my image could be loaded. below is my code
____________________________________________________________
httpTransport.call(SOAP_ACTION, envelope);
Object response = envelope.getResponse();
test = response.toString();
Blob picture = org.hibernate.Hibernate.createBlob(test.replaceAll("-", "").getBytes());
String FILENAME = "voucher1.jpg";
File root = Environment.getExternalStorageDirectory();
FileOutputStream f = new FileOutputStream(new File(root, FILENAME));
InputStream x=picture.getBinaryStream();
int size=x.available();
byte b[]= new byte[size];
x.read(b);
f.write(b);
f.close();
Getting ErrorVenkateswarlu April 1, 2011 at 10:57 AM
After executing the above code i am getting file unsupported Exception what should i do please help me in retrieving the image from the database without using servelet
could not load imagechinna February 22, 2012 at 3:44 PM
hi, im trying ot do the same way but my image could be loaded. below is my code ____________________________________________________________ httpTransport.call(SOAP_ACTION, envelope); Object response = envelope.getResponse(); test = response.toString(); Blob picture = org.hibernate.Hibernate.createBlob(test.replaceAll("-", "").getBytes()); String FILENAME = "voucher1.jpg"; File root = Environment.getExternalStorageDirectory(); FileOutputStream f = new FileOutputStream(new File(root, FILENAME)); InputStream x=picture.getBinaryStream(); int size=x.available(); byte b[]= new byte[size]; x.read(b); f.write(b); f.close();
thanksMajid March 26, 2012 at 4:40 PM
is was so useful for me... thanks alot
Post your Comment