Publish multiple Images

Hello

Please guide me where I'm wrong to display several images on the server using the http connection as well as other data in the body of the request.

My code snippet to send a first image (does not work):

-----------------------------------------------------------------------------

InputStream mImagen = this.getClass () .getResourceAsStream ("avatar_default.png");
Byte [] imgData = IOUtilities.streamToBytes (mImagen);

Dim message1 = "";
Message1 += 'AaB03x\r\n ';
Message1 += "Content-Disposition: form-data; name =-"avatar\"; filename=\"avatar_default.png\"\r\n ';
Message1 += "Content-Type: image/png\r\n";
Message1 += "\r\n";

String reqStr = 'http://myurl/updateProfileDetails.json?data1=smileys&data2=xxxxx ';

s = Connector.open(reqStr+";deviceside=true",Connector.READ_WRITE) (StreamConnection);
httpConn s = (HttpConnection);

httpConn.setRequestMethod (HttpConnection.POST);
httpConn.setRequestProperty ("Content-Disposition", "form - data");
httpConn.setRequestProperty ("Content-Type","multipart/form-data, boundary = AaB03x");

httpConn.setRequestProperty ("Content-Length", String.valueOf (imgData.length + message1.length ()));     httpConn.setRequestProperty ("Accept", "application/json");
httpConn.setRequestProperty ("Connection", "Keep-Alive");
httpConn.setRequestProperty ("Authorization", "Basic" + authHeader);

OS = httpConn.openOutputStream ();
      
OS. Write (Message1.GetBytes ());
OS. Write (imgData, 0, imgData.length);

OS. Flush();
OS. Close();

Hi sanghamitra_83,

I think it should send all your images via Httpmultipart.

check out this link and use this class in your application. I've used this class to send an image to the server, and it works fine.

_________________________________
Please press the button of congratulations on the left side to thank the user who has helped you.
Please mark as resolved messages if you found a solution.

Tags: BlackBerry Developers

Similar Questions

  • Fastest way that switch you between multiple images (CS3)?

    I come from a user of fireworks (from 2001) and am publishing are starting to learn Photoshop, as it is in my CS3 set and its superiority in the image.

    BUT, I've been surprised/shocked/P.O.-ed to notice that Photoshop has tabs allows you to easily switch between the images like Fireworks has had for the past 7 years.

    (Yes, I know that CS4 has that option now, but I'm not willing to dole on an another $600 dollars for an another upgrade )

    Anyway, enough *.

    My question is:

    "Can you tell me how you switch between multiple images open in Photoshop CS3?"

    I guess that there must be a keyboard shortcut, I think not, or something in addition to having to narrow down the images and routing through them...

    Thank you for your time and help,

    Brad

    CTRL + Tab on Windows, which incidentally is being a generalized system shortcut to scroll windows of subsidiary application as well, because that's what they are - windows.

    Mylenium

  • VBAI acquire multiple images

    Hello

    We work with VBAI 2012 and we want to acquire multiple images as quickly as possible one after another to decide what is best for the inspection. Is it possible to take for example 5 images one after the other, or what I call the image to acquire five times?

    Thank you

    Oliver

    Why not continuous use to acquire images and use 5 as the number of buffers required?

  • Acquire and process multiple images

    Hi, I use an acquisition card NI PCIe-1427 and tried acquisition and treatment of multiple image permanently. To be more precise, how can I extract a buffer of 4 images and perform some processing on the 4 images? For the examples, I can acquire 1000 images (or continuous), but must be extracted 4 images each time to combine them into a single image before saving the final image (on the handset). Thank you for viewing and comment. I woild appreciate if there are examples that I could learn too.

    Hi sp@davis,

    Did you look at This example that passes by sewing and processing of a video stream? There are tons of examples of different types of image processing on the community of NOR (like this one) If you have a type of mind-specific treatment. I hope this helps!

  • scan multiple images again and I don't want that he

    Hello

    I have a HP Photosmart 7525.   I use the Mac OS X 10.6.8 version.  I'm analyzing my grandmother's recipes.  On some of the TI keep break them into multiple images.  How can I disable this feature.  I'm just a complete picture of each recipe when I scan one at a time.

    Thank you

    Sean

    Hi Sean,.

    Please follow the steps below to resolve the problem described:
    1 open the HP utility and select your device.
    2. based on Scan Settings open the "Scan to Computer".
    3. click on the tab "scan tasks.
    4. Select the shortcut Scan allows to analyze, and then click on edit.
    5. in the section of scanning from an HP device, click the blue triangle or button view details to expand the menu.
    6. in the expanded menu now, open the drop down next to cultures in and set as none or A4.
    7. click OK and try to scan the image.

    Kind regards
    Shlomi

  • Trigger camera to acquire multiple images

    I have a camera for Imaging Source and it captures only one image for each external trigger pulse. But I want it captures 3 images. Y at - it any idea how do?

    The Datasheet for the camera DMK 23UV024

    Steps performed so far:

    1. Generate the trigger of a datagenerator pulse and trigger the camera
    2. Developed a LabVIEW program that can capture images on the trigger
    3. I have two different images to grab for a single trigger, since the camera captures a single image for each trigger, it will create confusion as to what trigger image belongs to who. How can I solve this problem.
    4. The idea is to capture 2 images that based on 1 trigger pulse without any interference between the two images

    With a few exceptions, cameras provide an image by trigger.  There are some devices that allow you to set a registry value to capture multiple images, but you would need to have one of these cameras in the first place.

  • display multiple images in Labview front panel

    Hi all

    I have an application in which I want to show multiple images (say, 16) on the façade of labview (thumbnail is preferable). I want to show some information about the image (like their quality and the index number). Now if the user double clicks on a thumbnail of the image then I want to choose this particular image for further processing.

    Could someone tell me please how to do this?

    I see several approaches here.  We need to start by a group of 16 indicators of photo.  Put the photos in them.  There are several ways to scale to the size of the thumbnails.  The simplest is probaby the ZoomFactor of an image property.  One of the toolkits - Vision, I think - includes functions to resize the images.  There are also screws posted on this forum to do simple image and someone recently released most of the code to do with .NET.  You can then seek a double click on any of these images and determine where the user has clicked.  I think you can find the sample code to detect a double-click; the basic idea is that you look two mouse events down within a certain period of time by using a structure of the event.

    Another method would be a single picture control displaying multiple images.  You want to search for two clicks to the same place (or very close to the same place) in a certain period of time, then determine the image that is displayed for this place.  A good start for it would be Ben emoticon display VI http://forums.ni.com/t5/BreakPoint/Starware-A-new-concept/m-p/616094?view=by_date_descending#M4595

  • How can I have multiple images in one frame in movie maker?

    Hello

    I would like to know how I can include multiple images in one frame in movie maker?

    Thank you.

    It would be useful to know exactly what you want to create.

    You can prepare the images in an image editing program
    before you import into Movie Maker.

    Picasa free software can make collages:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Picasa
    http://Picasa.Google.com/
    (for Windows XP/Vista/7)

    Tutorial Picasa: Collages: creating a montage
    http://Picasa.Google.com/support/bin/answer.py?hl=en&answer=19539
    (Photo battery option would be worth)

  • The multiple images on the screen layout

    Hello

    How do I layout of multiple images side by side in a controlled manner? I'd like have a background image and display several images before this image in different positions. Can I use arrays? Below code is what im going she to achieve but its overriding the paint method. Is there a better way to do this so at least the effort of porting to a different screen resolution?

    Thank you

    protected void paint (Graphics graphics) {}
    Super.Paint (Graphics);
    width int = backgroundBitmap.getWidth ();
    int size = backgroundBitmap.getHeight ();
    Bitmap backgroundBitM = Imagearriereplan;
    If (highlighted)
    backgroundBitM = backgroundBitmapHighlight;

    graphics.fillRoundRect (0, 0, width, height, 10, 10);
    graphics.drawBitmap (0, 0, width, height, backgroundBitM, 0, 0);
                    
    int quarter = backgroundBitM.getHeight () / 4;
    graphics.drawBitmap (10, 10, contestantImageBitmap.getWidth (), contestantImageBitmap.getHeight (), contestantImageBitmap, 0, 0);
    graphics.drawBitmap (80, quarter * 2, costBitmap.getWidth (), costBitmap.getHeight (), costBitmap, 0, 0);
    graphics.drawBitmap (30, quarter * 3, width, height, timerBitmap, 0, 0);
    graphics.drawBitmap (backgroundBitM.getWidth () - statusBitmap.getWidth (), 0, width, height, statusBitmap, 0, 0);
    graphics.setFont (do);
    graphics.drawText (label, 0, backgroundBitmap.getHeight ());
    }

    In this case I would watch overiding paint as you do.  I'm sorry.

    To make this the most effective possible. Transfer the amount of code that you can in sublayout - so have it position all fields and have paint, just painted.

    Your text can be a problem if you need support package.    If they are simple, easy lines.

  • When sending multiple images to photoshop camera raw, no images are displayed in photoshop.

    I send multiple images in camera raw to the bridge as part of my work. I make my changes and then select them all and click on the button "open the Images. When I did earlier using Photoshop CS6, all these images open in Photoshop CS6 and be aligned at the top of the window. Now that I have Photoshop CC, when I click on the button 'open image', I'm being transferred to the CC of Photoshop, but some images are open upward. Only a few hours after I downloaded Photoshop CC, Images have been sent there by Camera Raw, but they were sent one by one. I had to finish the job on a single photo, save it, then another of the images I sent Camera RAW would show up. Now, back to Photoshop after a break of 3 hours, I can not camera raw to send images Photoshop CC. I had to go back to my Photoshop CS6 in order to continue work on my assignment. I knew that there will be some changes in CC, but do not think they would be this boring.

    Also, in order to get several images displayed in Filmstrip mode in Camera Raw, apparently I have to send via Bridge. I can't drag and drop a folder into Photoshop CC. Is there a way around this?

    Hi terryleemartin,

    If please check, is your Photoshop and Bridge are updated to the latest version.

    In addition, reset the Photoshop preferences default back so if there is no change in the settings of this problem.

    Reference: Preferences in Photoshop

    Kind regards

    Mohit

  • Manipulate swf files that contain multiple images

    Hello

    I'm trying to manipulate a swf file containing multiple images inside, but I can't image of it.

    The detail of what I mean is:

    I imported a swf file to a cast member. Then, I created a sprite on stage with the contents of this member. Finally, as I need to zoom, I made a copy of the Member image using the command "copyPixels" and the content is displayed without problems on stage. So far so good.

    The problem appears when the swf file contains several images. If I move for them (using for example getToFrame (sprite (num), 2) to go to the second), on stage, it shows the corresponding image without problems. But if I do a "copyPixels" using the reference to the Member when the SWF has been on scene is always displays the first image.

    I tried to make a copy of the scene when the sprite shows one frame other than the first, but this option didn't allowed me to get the picture, which indicates that the property is not available.

    Any idea of solution?

    Thank you.

    I used the command that you offer me

    and solved my problem.

    Thank you very much.

  • How to merge multiple images into a single document and place them on the bottom

    I am trying to merge multiple images in a single document and arrange them on this document and save it.  Is it still possible?  There are five black and white drawings that I've resized at all have the same size.  Tutorials that I looked at, but it seems that everyone has another way to do this and all are very confusing.  Thanks for your help.

    It is not surprising that "everyone has a different way to do this." In Photoshop that is common. Try this:

    1. open a new file large enough to accommodate five drawings.

    2. open each design, click on it in the layers panel and drag and drop it in the layers panel to the new file.

    3. Repeat until all are in the new file

    4. use the move tool to reposition. (They are on separate layers)

    5 flatten the file if you wish (but save a version not flattened for future editing)

  • How to make the color of the sky, exactly the same thing in multiple images?

    How to make the color of the sky, exactly the same thing in multiple images?

    Bengt Nyman wrote:

    I'm not trying to replace the sky. I want to talk to a group of photos BIF where the percentages of red, green and blue in the sky varies from a few percent, but enough to disrupt continuity within the group. I like t would be able to use the percentages of color to one of the pictures and replicated in others.

    Because the brightness of the sky probably varies from image to image using percentages RGB will not work. What you can use are the values of a and b the laboratory values . Right-click in the inside of the develop module histogram and tick 'Show Lab Color values.' You can ignore the value of L, which is the value of Luminance or brightness. Adjust the blue sky s a b valueusing the Temp WB and sliders dyed until they are the same as your first reference image file. The value determines the color red/green balance if you use the Tint slider to correct the value. The b value determines the color yellow/blue balance if you use the slider Temp to correct its value.

    Remember that setting the base Panel WB with 'fixed' values of b for photos taken under lighting conditions different sky will be the color of the other objects in the image look incorrect (birds, trees, buildings, etc.). In this case, you will need to use the brush setting to paint in the region of the sky and then use its temperature sliders and tinted to change just the color of the sky.

    To be honest I don't know why you feel it's necessary. Maybe you can post two screenshots: 1) with the sky that they way you want to and 2) an image that you want to resolve to match.

  • Where did the installation to print multiple images per page?

    The Panel on the right in the 'Print' module has changed. Previously, the Committee was up and down, 'Image Settings', "Rules, grids, and Guides," 'Cells', 'Page', and "Print Job" with the 'cells' dropdown that gives me the choice of "add to package" where I could easily add and adjust the size of the cells. Now, (I have not downloaded anything) panels has from top to bottom, 'Settings of the Image', 'Layout', 'Guides', 'Page' and "Print Job" and I don't see a way to print several images (either the same of different images) on the same page.

    This should really be in the Lightroom forum!

    However, on the left side of the scree we do not, what are the parameters? They must be defined for a multiple-image document and not as I suspect one presented here.

  • The feature "Made simultaneous multiple images" or a similar added after effects CC?

    Adobe removed the feature "Made simultaneous multiple images" after effects 2015. Is this feature or a similar feature in after effects CC? I'm curious because I'm considering buying a new processor, and I need to know how the multi-core performance is the latest version of After Effects. I'd appreciate any guidance on this topic, if anyone has a Pearl of wisdom here.

    Hi kearley2018,

    The links below are for comfortable reading about multicore performance.

    Adobe After Effects CC 2015 Multi Core Performance

    Adobe After Effects CC 2014 Multi Core Performance

    As far as I know, their methodology is quite valid.

    Best regards

    Jachymeveque devote Metlicka

Maybe you are looking for

  • Comand PowerShell for authorization of SIDHistory

    It is that any tool or contain recommended by Microsoft powershell commands that provide the authorization of SIDHistory? [Moved from the community centre of Participation]

  • Windows Update error 80070663

    I am trying to download 2007 Microsoft Office Suite Service Pack 2 SP2 and get an "Update error 80070663. I am running Windows Vista professional. I managed to install the update on other computers/laptops in my house.Martin

  • Unable to see the list of content in the recent documents menu on the start menu

    Original title: Hi all I installed windows xp and having recent document menu in the start menu but the content list is not no projection in recent documents even after activation "list for most recently opened documents" in Customize menu. What shou

  • My start the computer to the top of time.

    My computer a Toshiba L300, sometimes takes forever to initialize. I get the signal of "Please wait" but the signal of "Welcome" manages not to come. Occasions, I have to force the switch it turns off and turn it back on then again. What can I do to

  • Extension of LAN Design

    A customer has a layer2 switch as device edge, connected directly to the Metro Ethernet (LAN extesnion) provider. The metro network is connected to an ATM cloud which, in turn, connected to another area of metro. as follows: -. customer CPE switch aS