Download images from the client to the server location
Hi allI use JDev 11.1.1.4 and middleware application development. My need is to download image user at the location of the customer weblogic server and show this image using this place on another page.
How is this possible, so I'm not very familiar with new java servlet.
Help me with this requirement
Concerning
Rohit
795445 wrote:
Hi allI want a solution, can someone help me find the solution
Rohit
There you go http://baigsorcl.blogspot.com/2010/08/uplaoding-and-downloading-images-in.html
Tags: Java
Similar Questions
-
Does anyone know of an easy way to download images from the Olympus E - M10 12 of Photoshop, or how to export images uploaded using Olympus Viewer 3 to 12 of Photoshop?
Photoshop elements 12 can use the 8.5 camera raw plugin, which should allow the Olympus E - M10 to open in 12 PES editor or be imported in the Organizer 12 PES.
Have you tried help > updates the editor of PES 12 to get camera raw 8.5?
-
EOFException when downloading files from the server FTP of Bluetooth
Hello, I am developing an application that downloads a file from a FTP of Bluetooth server. If I use this code to download a list of files works fine, but if I use the same code to download a real file it doesn't. I tried using plain text, image, video (mp4 and 3gp) and audio with the same result. If I install my app in a Nokia (N95) or a Motorola (K3) works perfectly, but I can't get it to work on my Blackberry 8310
The problem in the BlackBerry is an EOFException when reading the first byte, no 1 is returned to indicate the end of the file, but an EOFException. BlackBerry Handheld Software (v4.2.2.173)This is the code to get the InputStream:
public InputStream getFileInputStream(ClientSession conn, Operation op, String stFile, String stType) throws IOException { InputStream inputStream = null; byte[] FBUUID = {(byte) 0xF9, (byte) 0xEC, (byte) 0x7B, (byte) 0xC4, (byte) 0x95, (byte) 0x3C, (byte) 0x11, (byte) 0xD2, (byte) 0x98, (byte) 0x4E, (byte) 0x52, (byte) 0x54, (byte) 0x00, (byte) 0xDC, (byte) 0x9E, (byte) 0x09 }; String file = stFile; String type = stType; if (file==null) file=""; if (type==null) type=""; //Prepare the headers for the OBEX commands HeaderSet header = conn.createHeaderSet(); header.setHeader(HeaderSet.TARGET, FBUUID); //Send OBEX Connect HeaderSet response = conn.connect(header); //In order to go the desired folder the OBEX SETPATH command is beeing used //Prepare the header for the SETPATH commad header = conn.createHeaderSet(); //folder_name is set to the name of the desired folder //if left blank the root folder will be used String folder_name = ""; header.setHeader(HeaderSet.NAME, folder_name); //Send the SETPATH command HeaderSet result = conn.setPath(header, false, false); //Prepare the header for the GET command header = conn.createHeaderSet(); header.setHeader(HeaderSet.NAME, file); header.setHeader(HeaderSet.TYPE, type); op = conn.get(header); //The selected file will be send to the operation's input stream inputStream = op.openInputStream(); return inputStream; }
And the call:
InputStream in = getFileInputStream(conn, op, "text.txt", "text/plain");
The same call that works perfectly for the list of files (in BlackBerry too):
InputStream in = getFileInputStream(conn, op, "", "x-obex/folder-listing");
This call produces an xml file which can be read perfectly by any phone.
Any help is very appreciated!
Concerning
Solved. The problem is to use >-1 instead of ! =-1
-
I try to download, a window appears showing AVG scans emails and the line on the bottom left says download 1 x messages, and again, nothing happens. When I go to the server and open web mail, the messages are here and can be read, but will not download to the desktop.
Don't let not AVG scan your Thunderbird profiles folder.
-
HOW CAN I DOWNLOAD MAIL FROM THE SERVER
Thunderbird has had in the past, a simple command, "Get Mail" that disappeared that I can tell. Need to get my messages on the server as some disappear just if I leave here too long and I never can tell what is "too long".
Thank you
VIC Tennery
Download mail has not been deleted, but yours may be hidden.
http://www.Ramsden.org.UK/5_Lost_toolbars.html
http://chrisramsden.vfast.co.UK/13_Menus_in_Thunderbird.htmlIn my humble OPINION, unless you have a formal contract with your email provider, you should show all emails stored on their server as transitional and not guaranteed to be here tomorrow.
-
Error on image from the server and display streaming
Hi all
Im trying to read an Image that origin of the server and displays on a screen
Here's the code I'm using to broadcast the image.
It is streaming on my Simulator as well as on some devices.
But on some devices, it's not streaming and throw an exception.
public UrlToEncodedImage(String url) { HttpConnection connection = null; InputStream inputStream = null; byte[] dataArray = null; try { connection = (HttpConnection) Connector.open(url+getConnectionString(), Connector.READ, true); inputStream = connection.openInputStream(); byte[] responseData = new byte[10000]; int length = 0; StringBuffer rawResponse = new StringBuffer(); while (-1 != (length = inputStream.read(responseData))) { rawResponse.append(new String(responseData, 0, length)); } int responseCode = connection.getResponseCode(); if (responseCode != HttpConnection.HTTP_OK) { throw new IOException("HTTP response code: "+ responseCode); } final String result = rawResponse.toString(); dataArray = result.getBytes(); } catch (final Exception ex) { } finally { try { inputStream.close(); inputStream = null; connection.close(); connection = null; } catch(Exception e){} } bitmap = EncodedImage.createEncodedImage(dataArray, 0,dataArray.length); // this will scale your image acc. to your height and width of bitmapfield int multH; int multW; int currHeight = bitmap.getHeight(); int currWidth = bitmap.getWidth(); if(currHeight>350&&currWidth>350){ bitmap=scaleToFactor(bitmap,currWidth,currHeight,Display.getWidth()-20,250); } } public EncodedImage getEncodedImage() { return bitmap; } public EncodedImage scaleToFactor(EncodedImage encoded, int curWidth, int curHeight, int newWidth, int newHeight) { int numerator_width = Fixed32.toFP(curWidth); int denominator_width = Fixed32.toFP(newWidth); int scale_width = Fixed32.div(numerator_width, denominator_width); int numerator_height = Fixed32.toFP(curHeight); int denominator_height = Fixed32.toFP(newHeight); int scale_height = Fixed32.div(numerator_height, denominator_height); return encoded.scaleImage32(scale_width, scale_height); } private static String getConnectionString() { String connectionString = null; if(DeviceInfo.isSimulator()) { if(UrlToEncodedImage.USE_MDS_IN_SIMULATOR) { connectionString = ";deviceside=false"; } else { connectionString = ";deviceside=true"; } } else if(WLANInfo.getWLANState() == WLANInfo.WLAN_STATE_CONNECTED) { connectionString = ";interface=wifi"; } else if((CoverageInfo.getCoverageStatus() & CoverageInfo.COVERAGE_DIRECT) == CoverageInfo.COVERAGE_DIRECT) { String carrierUid = getCarrierBIBSUid(); if(carrierUid == null) { connectionString = ";deviceside=true"; } else { connectionString = ";deviceside=false;connectionUID="+carrierUid + ";ConnectionType="; } } else if((CoverageInfo.getCoverageStatus() & CoverageInfo.COVERAGE_MDS) == CoverageInfo.COVERAGE_MDS) { connectionString = ";deviceside=false"; } else if(CoverageInfo.getCoverageStatus() == CoverageInfo.COVERAGE_NONE) {} else { connectionString = ";deviceside=true";} return connectionString; } private static String getCarrierBIBSUid() { ServiceRecord[] records = ServiceBook.getSB().getRecords(); int currentRecord; for(currentRecord = 0; currentRecord < records.length; currentRecord++) { if(records[currentRecord].getCid().toLowerCase().equals("ippp")) { if(records[currentRecord].getName().toLowerCase().indexOf("bibs") >= 0) { return records[currentRecord].getUid(); } } } return null; }
The underlined part of the code is where the uid is sent as public _.
Please, look in the code and let me know where the error is, or is there a better way to disseminate the image.
In the hope that you hear.
Thank you & best regards
Krishnan
Hello
I found the error.
It's in the URL sent by the server.
The URL consisted of http://google.com
But the format required to retrieve the image on several device would be http://www.google.com.
Thanks for anyone who tried to help him.
Krishnan.
-
Downloading images from the camera on HP Chromebook 14
Hello
I am new to Chromebooks and I loved everything about them. However, I can't figure out how to download photos from my camera to my Chromebook.
I have a Canon Powershot SD 790 IS. When I plug in the camera, nothing shows up in 'Files' as I read in other forums. I turned the camera on and outside, that plugged while and also tried to turn it on before plugging in, but nothing appears.
On my PC, when I plug in my camera, I just push a button which allows you to view the photos without turning the whole camera, and then it begins to download the photos to the PC.
I tried all 3 USB ports thinking maybe I got it in one, which does not recognize my camera, but no matter which it is plugged, nothing appears in 'Files' accomplishments my camera.
Is there something I do not think I should do? Or do I have to look elsewhere to see if the Chromebook is recognizing even my camera?
Thank you
Hey kvnniv,
Welcome to the HP Forums!
I'm glad to hear you love your new Chromebook!
You do not have some option to try and see if you can upload your photos on your 13 Chromebook directly from your camera. Normally, the Chromebook accepts not cameras in this way.
1. see if your device has a mass storage mode, you may need to manually copy the photos on your Chromebook.
2 another option is if your camera has an SD card, you could withdraw from your camera and insert it into the Chromebook.
3. the last option would be to contact Canon to see if they have available for Chromebooks software.Please let me know if these options don't work for you.
Good luck!
-
How to download images from the camera at the top of the Tower
I just need to upload photos of a family on my counter top party
Just connect the camera and syncronise it then copy all the images you want and paste it to any folder on the PC.
-
Search and download images from the internet
Hello
I would like to get a photo on the Internet. With the URL, I would like to download the file. (For download, I found a command line tool)
Could someone help me?
Mathias
Thanks for all your help... I have the solution
Maybe for a useful person...
Mathias
-
Tried to download images from the camera. Unregistered class said. What is c?
Trying to transfer photos from my camera in Windows Photo Gallery. Pop - up said I couldn't because the class is not registered. What does that mean?
Hi John,.
-When exactly you receive this error message?
This problem occurs because a database is damaged. This database is created by Windows Live Photo Gallery to follow the photos and videos. To resolve this problem, use the following methods in the order in which they are presented. If method 1 does not resolve your problem, go to the next method.
Method 1:
Run the Fixit to solve problems with Windows Live Photo Gallery that does not work on Windows Vista.
http://support.Microsoft.com/mats/windows_photo_and_slideshow_diag
Method 2:
Refer to the help article and check if that helps.
Windows Live Photo Gallery crashes or won't start
http://support.Microsoft.com/kb/944221
Registry warning: Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:
http://Windows.Microsoft.com/en-us/Windows-Vista/back-up-the-registry
Let us know the status of the issue. If you need help, please after return. We will be happy to help you.
-
Download images from the camera to the computer
My content box does not appear when I attach the camera to the computer. The instructions say use the file on the toolbar in the photos section, however, I don't have the toolbar at all here and don't know how to get it. Any help?
My content box does not appear when I attach the camera to the computer. The instructions say use the file on the toolbar in the photos section, however, I don't have the toolbar at all here and don't know how to get it. Any help?
=======================================
If you connect the camera and the power you can
to go to... Start / computer... and see the camera listed as a
Removable disk. If_yes_left click on the drive and you can be
possibility to see the directory and copy your photos from there.And... you may have a problem with your AutoPlay settings:
Windows Vista-
How to change the auto run settings
http://Windows.Microsoft.com/en-us/Windows-Vista/Change-AutoPlay-settingsWindows Vista-
Troubleshoot AutoPlay
http://Windows.Microsoft.com/en-us/Windows-Vista/Troubleshoot-AutoPlay-problemsWindows Vista-
AutoPlay: Frequently asked questions
http://Windows.Microsoft.com/en-us/Windows-Vista/AutoPlay-frequently-asked-questions John Inzer - MS - MVP - Digital Media Experience - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *. -
Cannot download images from Canon to the computer
I have a new Dell running Windows 7. I installed the software for my Canon PowerShot SD550 camera, but I can't download photos from my camera to the computer. I tried to uninstall, but it won't let me. Is this a compatibility issue. I have a camera perfectly, and it saddens me to think that it is useless on Windows 7. Any help would be appreciated.
Original title: I have a camera Canon PowerShot SD550. I installed the software on the new computer to Windows. I can't download photos from my camera. 7
Hello
1. what happens when you tried to download images from the camera?2. do you get an error message?
3. how you connect the device to the computer? What is USB?We have checked and checked the camera Canon PowerShot SD550 is compatible with Windows7.Windows 7 Compatibility Center
http://www.Microsoft.com/Windows/compatibility/Windows-7/en-us/search.aspx?l=en-us&type=hardware&s=Canon%20PowerShot%20SD550%20&OS=32-bit
Method 1:
Step 1: I suggest you to connect to another computer and check the issue.Step 2: Try to connect to another USB port and check with the question.Method 2: Run the troubleshooter of materialOpen the hardware and devices TroubleshooterMethod 3:If you have connected the device via a USB port to the computer. Make sure that you follow these steps to download pictures from the Canon.a. turn on the Canon camera and put it in playback mode by pressing the button with the triangle "play" on this subject.b. plug the small end of the USB cable to the device and plug the other end into a USB port on your computer.c. click on the "Start" button in the lower left corner of your desktop and click on "my computer.» Double-click the icon of the gun in the left pane of the window "Workstation". If another file exists inside the folder of the Canon, so open that until you reach the image files.d. Select the files to be transferred to your computer. Hold 'Shift' click on the two separate files and it selects all of the files between the two. Otherwise, hold 'Ctrl' to select multiple files that are not adjacent.e. click on 'get images from the camera' If Windows recognizes the Canon as a camera 'Scanners and camera,' Wizard which will guide you through the download of your photos on your computer and remove them from your camera. Click on 'copy selected files' if 'get images' is not an option, this will open a dialog box where you select the location to which you want to download your photos.Let us know the results.I hope this helps. -
Uploading images on the server
Hi all
My requirement is that the user enters the images and images must be uploaded to the server in the background while the user can continue to perform other tasks at the request. I would like to know what is the best way to implement a background thread that downloads images on the server. Could someone please provide me with a few entries. Thanks in advance.
Kind regards
S.A.Norton Stanley
There is no problem with the background Thread. I would recommend that you have only one Thread, containing the first element of a list persistent images to send. Once the image has been sent to it, the Thread deletes the entry for one just sent and resumed the following. You need good timing around the updating of the list, I use usually vector which is theoretically synchronized correctly but I'm a check anyway.
The processing of wire has a public Add method that starts the Thread if it is not running. The Thread stops when there is nothing in the queue.
All this is pretty standard, I think. But there are a few things that I think that you may need to add to this transformation to make it more robust:
(a) you can give the user the option to delete the image once it is sent. Indeed remember that the user could remove the image before sending it and if treatment should take care of this.
(b) I would recommend a server component that receives Images. You can then move the image into pieces because some methods of communication are limited by the size of the data that can be transferred to a single connection. I would recommend breaking the image into blocks of 64 KB. You should provide a mechanism to restart here too, so that you can return just the parts in waiting for an image after a failure.
(c) you need to think about the question to know if the server and intermediate gateways will deal with binary data, or do you need to encode it in text (Base 64 seems to be the way to go if you do).
(d) you should consider which allows the user to limit communication to specific connections, such as WiFi or 3 G.
(e) you will need to be very careful about the coding of restart and recovery, so that the treatment doesn't die unexpectedly.
Hope this is useful. .
-
Image downloaded from the server: Blue effect
Hello
I downloaded the Image to the server. Holding her blue effect.
Code or even is:
ImageView* imageView = page->findChild
("image"); if (success) {//show the image if (imageView) { QImage qImage = img->getImage().rgbSwapped().scaled(768, 500, Qt::KeepAspectRatioByExpanding); //resize image to fit container imageView->setImage(fromQImage(qImage)); } } The shadow of the lights, please...
What is the img type? I don't think you need the rgbSwapped.
-
Download the image to the server using the message parameter.
Hello experts,
I want to download an image on the server by using the post method with parameter alongsome such as file name, status, tag, deviceid, name of the device.
Server taking some as windows credentials. I connect a .html page which, in my url, it must be all the parameter and in action, he goes to the .php file and it image upload server-side.
I use this code, I have my tent for the last 3 days but I get no success.
Please help me...
My code is: -.
private String httpConn (String file) {HttpConnection conn = null; OutputStream os = null; InputStream is = null; String url = ""; int respcode = 0; path of the Web service from which image will be transferred. URL = "" http://usertest[email protected]/admin/image_upload_iphone_app.html ";" Try {conn = (HttpConnection) Connector.open (url); conn.setRequestMethod (HttpConnection.POST); String name = "file:///" + file; FileConnection fc = (FileConnection) Connector.open (name); is = FC.openInputStream (); / * byte [] imgData = IOUtilities.streamToBytes (is); is. Read (imgData); * / byte [] ReimgData = IOUtilities.streamToBytes (is); Resize Image according to setting. Byte [] imgData = reszieImage (ReimgData); is. Read (imgData); String limit = "---14737809831466499882746641449"; String body = ""; name of the file... body = "\r\n--" + limit + "\r\n"; body & = "Content-Disposition: form-data; Name=\"filename\"\r\n\r\n"+"test.jpg '; body += "\r\n--" + limit + "\r\n"; tag... body = "\r\n--" + limit + "\r\n"; body & = "Content-Disposition: form-data; name =-"tag\" \r\n\r\n "+ 'tag'; body += "\r\n--" + limit + "\r\n"; status... body = "\r\n--" + limit + "\r\n"; body & = "Content-Disposition: form-data; name =-"status\" \r\n\r\n "+ 'status'; body += "\r\n--" + limit + "\r\n"; Device ID... body = "\r\n--" + limit + "\r\n"; body & = "Content-Disposition: form-data; name =-"deviceid\" \r\n\r\n "+"deviceid"; body += "\r\n--" + limit + "\r\n"; DeviceModel... body = "\r\n--" + limit + "\r\n"; body & = "Content-Disposition: form-data; name =-"devicemodel\" \r\n\r\n "+"devicemodel"; body += "\r\n--" + limit + "\r\n"; image... body = "\r\n--" + limit + "\r\n"; body & = "Content-Disposition: form-data; name =------'URL '; filename=\""+"test.jpg"+"\r\n '; body & = "" Content-Type: application/octet-stream\r\n\r\n ";" body & = new String (imgData); body += "\r\n--" + limit + "-" + "\r\n"; conn.setRequestProperty ("Content-Type", "multipart/form-data;" + limit); OS = conn.openOutputStream (); OS. Write (Body.GetBytes ()); OS. Close(); / * / / SEND the IMAGE int index = 0; int size = 1024; {System.out.println ("write:" + index);} If ((index+size) > imgData.Length) {size = imgData.length - index ;} os.write (imgData, index, size);} size of the index of +=; } While (index
{0) {}} while(len>0); * / respcode = conn.getResponseCode (); } catch (Exception e) {e.printStackTrace () ;} Finally {//System.out.println ("closely connected"); try {os.close () ;} catch (Exception e) {} try {is.close () ;} catch (Exception e) {} try {() conn.close ;} catch (Exception e) {}} return Integer.toString (respcode);}}} }
Concerning
Pankaj Perron.
It is a solution guys: -.
see...
http://wiki.Forum.Nokia.com/index.php/HTTP_Post_multipart_file_upload_in_Java_ME
Maybe you are looking for
-
is it possible to remove the camera given the number of image and replace it (in a change of badge) with a personal number (is it possible in Aperture)?
-
Windows Vista keeps in hibernation
Windows vista keeps in hibernation, and then will not come out of it. The mouse will not respond not despite the fact that the tower is still. What should I do?
-
What should I do first after the system restore?
I will restore my laptop to factory settings and I was wondering if I should install the updates from the window or the antivirus updates first. I just want to know the safest order and how to do when getting my computer security up-to-date. Using V
-
Smartphones blackBerry the ball why would not work?
We just got this phone yesterday and already the ball doesn't seem to work. It will not go back! Help
-
Using dynamic PAT with IPSec VPN
Hello I will say first of all thanks for reading this post. My goal is to create a dynamic PAT for 5 private host 1 ip address public, then to allow this ip address public 1 via an ipsec tunnel. I have an ASA5555 running on code 9.2 (1). Here's what