View Full Version : how can i save the images
mohan
09-24-2003, 07:37 AM
Hi Antun,
In My application, i am uploading an image, and display the same on another image.how can i save
both images in lzx.
Thanks alot
Mallesh
antun
09-24-2003, 07:46 AM
I'm not sure I understand what you mean. Is that not the same as what you were asking here:
http://www.laszlosystems.com/developers/community/forums/showthread.php?s=&threadid=366
You can't send a multipart POST request from the Flash client. So you can't upload directly from it - you can work around this problem by having a small HTML window pop up and handle the file upload, as I suggested here:
http://www.laszlosystems.com/developers/community/forums/showthread.php?s=&threadid=360
Basically you have some other (non-lzx) script handle the file upload for you.
-Antun
mohan
09-24-2003, 10:43 PM
Hi Antun,
We are able to upload the image to server using jsp.
and also i am going to design the product (like mobile,book etc..)by using this uploaded image and as well as mask image.So how can i save this designed product (which contains uploaded image on the product)
so that i can use this for my future use (like send it to friend's email account etc..).
Thanks
Mallesh
antun
09-24-2003, 10:56 PM
Anything like saving an image has to be done with server-side scripts. At the moment there are no APIs in LZX for working with the server-side filesystem, or for interfacing with a database.
You would establish a dataset that points to your script:
<dataset name="imgManager" src="myscript.jsp" type="http" autorequest="false" />
... and in your script you'd call that jsp, for example, you might have coded myscript.jsp to accept a GET variable called "action", and an image to save (that was uploaded previously):
imgManager.setQueryString( 'action=saveImage&imageId=123' );
imgManager.doRequest();
You should also have myscript.jsp return XML that denotes any message, and have a <datapointer> that points to the relevant node, with an ondata event handler to alert the user that their action was completed.
-Antun
antun
09-24-2003, 10:57 PM
See my reply to this post:
http://www.laszlosystems.com/developers/community/forums/showthread.php?s=&postid=1376#post1376
The model is exactly the same. The LPS has no SMTP interface at the moment. Everything has to go over HTTP.
-Antun
mohan
10-07-2003, 09:01 PM
Hi Antun,
I have to store designed product(designed by the user by using our application ) which contain 3 Images ("mobile image" at the back ,"uploaded image" in the middle and "mask image" at the top ) as one image in one of the folder in the server .So Is it possible in laszlo ?
For reference, i am sending one sample image which contain 3 images under one file name.
Thanks
Mallesh
antun
10-08-2003, 03:04 PM
Laszlo doesn't have any server-side image manipulation APIs. If you've positioned the images in Laszlo, you could send the coordinates to a script on the over HTTP, using a dataset, which does the manipulation there.
-Antun
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.