Hi Michel, Yes, I'm interested in seeing your code example. I didn't know you could send image bytes to the client.
Thanks, -Dave On Mon, Dec 8, 2008 at 1:55 PM, Michel <[EMAIL PROTECTED]> wrote: > > Hi, > > I store the uploaded image in the database as a Blob, and then point > the client to a plain vanilla servlet, which retrieves the Blob and > streams out the bytes as an image. That works. I can send you the code > for that if you want to go that way. Not quite what you are looking > for, perhaps. > > Cheers, > > > Michel > > > > > On Dec 8, 9:58 am, "David Hoffer" <[EMAIL PROTECTED]> wrote: >> I don't have a definitive answer as I have a similar problem and am >> looking for the final solution. However it is my understanding you >> just need to put the files/images anywhere that is under the ROOT of >> your web server then you just pass the relative path (from ROOT) to >> the client. >> >> -Dave >> >> On Sun, Dec 7, 2008 at 1:43 PM, Feltros <[EMAIL PROTECTED]> wrote: >> >> > Bump - Any chance of an answer to this question? It really has stunted >> > my project development. >> >> > Thanks massively to anyone who can assist. >> >> > On Nov 30, 6:55 pm, Feltros <[EMAIL PROTECTED]> wrote: >> >> I have seen a vast many tutorials on using ImageBundles in GWT >> >> applications, but what about when a user uploads a photo lets say? >> >> Whereabouts do you go about saving that photo in the directory >> >> structure, and where do you point to, to publish that photo onto the >> >> client's screen? >> >> I'm having problems at the moment because everytime I try to access >> >> anything in my GWT project directory from the client that isn't >> >> specified in the .xml it complains, but if a user uploads a photo I >> >> can't possibly change the .xml everytime now can I? >> >> >> My directory structure and main questions are: >> >> src - >> >> - gxtBTI >> >> - FileUploadController (Where do I point to from here >> >> when saving the file?) >> >> - public >> >> - App.gwt.xml (Do I need something here >> >> to say that whole folders are accessible for images/media?) >> >> - client >> >> - App (Where do I point to when trying to show the >> >> newly uploaded photo?) >> >> >> I'm assuming I should save somewhere into the 'public' folder, and >> >> that this will be accessible from the server by simply saving into / >> >> public/ ? >> >> And then can I put the picture on the client interface just using <img >> >> src="/the url minus the 'public' bit since that'll be hidden by the >> >> server?"> ? >> >> >> Thanks kindly > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---