Even i was trying implementing the same think but i couldnt make it. I used
image/jpeg
inputStream
filename="${filename}"
1024
But got an exception saying "Can not find a java.io.InputStream with the
name [inputStream] in the invocation stac
Jeromy Evans - Blue Sky Minds wrote:
>
>
> Hi Johnson, I think just need to read up a little more on Struts 2 as it
> seems you're trying to do too much yourself based on Struts1 experiences
> rather than let the framework do more of the routine work. Ian Roughly's
> book is a good place to
Johnson nickel wrote:
Hi Evans,
I digged in google examples in StreamResult. But, i can't
understand.
I want to display the images in browser Using StremResult.
Instead of ServletOutputStream out=
response.getOutputStream();
How can i use StreamResult.
Can u gi
: "Johnson nickel" <[EMAIL PROTECTED]>
To:
Sent: Friday, December 07, 2007 8:39 AM
Subject: Re: Struts 2 File upload to store the filedata
>
>
> Hi Evans,
>
> I digged in google examples in StreamResult. But, i can't
> understand.
> I want to displ
Hi Evans,
I digged in google examples in StreamResult. But, i can't
understand.
I want to display the images in browser Using StremResult.
Instead of ServletOutputStream out=
response.getOutputStream();
How can i use StreamResult.
Can u give some examples pgm??
Don't use ServletOutputStream within Struts2. Use a StreamResult instead:
http://struts.apache.org/2.0.11/docs/stream-result.html
In the example provided in the above link, inputName references a
property in your action that's an InputStream you need to create from
your data.
InputStream ge
Hi Evans,
I want to display the images in browser from the database.
I have added my code.It throws null pointer Exception.
In my action, i have implements
ServletRequestAware,ServletResponseAware interface. I want to
know if ServletOutputStream
Johnson nickel wrote:
Hi Jeromy Evans,
Thanks for your reply. I would like to insert the images into
my
Databases. For that, i'm using byte[] array.
In Struts 1.3,
I used FormFile class. From this class i got the method
getFileData();
Hi Jeromy Evans,
Thanks for your reply. I would like to insert the images into
my
Databases. For that, i'm using byte[] array.
In Struts 1.3,
I used FormFile class. From this class i got the method
getFileData();
In my db, ps.setBytes(1,fi
Johnson nickel wrote:
Hi everyone,
I am using Struts 2 and using tag to upload a file.
But I get that file as a 'File' object in my action class and using
getFileName() on that File object returns me some arbitrary value (something
like upload__5b41f107_1127b4befe0__8000_.tmp). I want t
10 matches
Mail list logo