Hi,
I am new to loading images into GWT from MySQL and am abit lost on the
best way to do it.
I already have my image in the database. How do I retrieve it? I read
somewhere that it can just be stored as a String. Is this correct? So
my code on the server side would look like:
//Open database connection
dc.openConnection();
resultSet = dc.statement.executeQuery(SELECT CategoryImage FROM
itemcategory_table WHERE ItemType = 'Test');
while(resultSet.next()) {
String test = resultSet.getString(1);
}
dc.closeConnection();
Or have I got this completely wrong?
Next, I need to send this over to the client. What is the best way to
send an image over from the server to the client and how should it be
stored?
Any help on how to use images would be much appreciated!
Regards,
Jack
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---