Saving image to a folder not working on azure

I am saving image
files to a folder in my application and saving its path in database . Image uploads working fine when I am running locally
and its path is also storing.When I deployed it on azure it
gives an error that " An error occurred while processing your request ". I have two tables in my database . First one where text is saved is working fine on azure but image upload thrown this error.
I am using this code
to upload
image and its works fine when I am running locally. Need help ?

Hi,
Have you made any progress ?
May I ask what application is it that you are running ? You mentioned that it works locally but not when deploying to Azure. Have you checked the connections strings?
If you are still having any difficulty in understanding the code, perhaps you could post it on the below blog.
http://blogs.msdn.com/b/onecode/archive/2014/08/28/sample-of-aug-28-how-to-store-the-images-in-sql-azure.aspx
Regards,
Mekh.

Similar Messages

  • Photo DVD: Saving images to DVD-ROM not working

    When creating a photo slide show In iDVD, there is an option to save the photos to the DVD-ROM portion of the disc so that viewers can download them to their own computer.
    After I created a photo slide show in iDVD, it played just fine on both the computer and on a DVD player. But when I have the DVD in my computer's super drive and I try to access any of the photos (jpeg files) that are on the DVD-ROM portion, I get an error message saying they can't be opened.
    What am I doing wrong?
    I have iLife 09 with iDVD version 7.1.2. My OS is Lion 10.7.2.

    > 8mp camera and I have the images saved in TIFF which are 22.9m in size
    That makes no sense.
    > So resolution is not an issue.
    Yes it is.
    There are 2 issues here: file format and image size/resolution.
    The best format depends upon what the print shop will accept. Often, JPEG is the only option and simply saving at the highest quality will give excellent results. If the option is available from the shop, give them a non-lossy format - TIFF is probably best.
    With image size it's all down to pixels and looking at th epixel size of your image is what matters. The "resolution" [PPI value] is simply the ratio of pixels in the image to inches on paper. So long as you PPI is at least 200 and no more than, say, 600, you are OK. Print shops operate in 2 ways:
    The expensive ones will take your image and you tell them how big you want to print and they do it.
    The cheaper ones require the image be carefully prepared to be the right size - i.e. have the PPI set so that the size in inches is right.
    In my experience, the cheaper ones, while requiring more work, often produce the best results.
    If you are in the UK, email me [colin_walls AT yahoo DOT com] and I will direct you to an excellent mail-order printer, who is cheap, reliable and produces excellent results. [I have no business connection with them, except that I'm a happy customer.]

  • I am having trouble printing a PDF document. Whenever I click print nothing happens but when I am printing documents from Word, Excel etc they print without a problem. I've tried printing as image but that did not work. I uninstalled Adobe Reader XI and d

    I am having trouble printing a PDF document. Whenever I click print nothing happens but when I am printing documents from Word, Excel etc they print without a problem. I've tried printing as image but that did not work. I uninstalled Adobe Reader XI and downloaded Adobe Reader X instead and that still doesn't work. I have Windows 7.

    Hello,
    Please follow the link to troubleshoot the printing issues with Adobe Reader:- Troubleshoot PDF printing | Acrobat, Reader.
    Regards,
    Nakul

  • Watch Folder not working in PSE 8

    My understanding is that My Pictures folder is automatically under Watch Folder list. However, whenever I create a subfolder within My Pictures in the Explorer and put picures in it, my media browser in PSE 8 does not show me those pictures in that folder. Why? It seems I have to manually add every subfolder within My Pictures to Watch list. Is that true or what am I doing wrong?
    Thanks!

    Hello,
    Does anyone have any suggestions to my question? I did not get any responses.
    Everytime I add pictures to any sub folder in the My Pictures, I do not see that in photoshop (PSE 8). I have to import each one o f them manually. Why is my Watch Folder not working?
    Thanks

  • Trouble saving the image, save as button not working

    i'm having trouble in saving the image in PNG format, it seems that the "save as" button is not working properly, what should i do?

    Save from what program? On what system? In any case, ask in the product forum of whatever program you are referring to...
    Mylenium

  • TWO CRITICAL BUGS: 1) File, "Save Page As" and 2) right-click the picture and select "Save Image As", both do not work at all in Firefox 27, 28, and 29!

    Note: capitals are used only to highlight important words.
    PLEASE, TAKE THESE COMMENTS ON TWO CRITICAL BUGS VERY SERIOUSLY BECAUSE THE BUGS DESCRIBED BELOW ARE SO CRITICAL THAT I CANNOT USE THE LATEST VERSION OF FIREFOX UNLESS THEY DO NOT APPEAR IN THE LATEST VERSION AND THEREFORE I AM FORCED TO REVERT BACK TO FIREFOX 26.
    I have Windows 7 64-bit and Firefox 26. I could not install Firefox 27, 28, and 29 due to the persistent presence of the two critical bugs described below. I have 8 GB of RAM and an Intel quad-core processor and a lot of hard disk space available.
    I installed Firefox 27 and then Firefox 28 a while back and these two bugs described below were still present and now I have just checked again with Firefox 29 by installing it and yet again, these two bugs described below are present!! UNBELIEVABLE THAT THESE TWO CRITICAL BUGS ARE STILL PRESENT IN FIREFOX 29 WHEN I CLEARLY INFORMED YOU ABOUT THEM IN THE HELP, SUBMIT LINK OF FIREFOX!!
    I am forced to revert to Firefox 26!
    First, I use Windows 7 64-bit and I always use Firefox with at least 120 tabs opened. BUT I have 8 GB of RAM, an Intel core i7 quad-core processor and more than 1 TB of hard disk space. Consequently, I do not understand why I would have these two critical bugs.
    With Firefox 26, I also have at least 120 tabs opened when I start Firefox and I do not have the two critical bugs described below, therefore I do not believe that the number of tabs is the reason of the two critical bugs that are present in Firefox 27, 28, and 29.
    ---FIRST CRITICAL BUG:
    When I open ANY web page and do File, "Save Page As", the window that is supposed to open to locate the folder where I want to save this web page does NOT open at all, even if I wait a long time to see if it opens.
    Same problem happened with Firefox 27, 28, and now 29!! When I reverted back to Firefox 26, this problem did NOT happen anymore!
    ---SECOND CRITICAL BUG:
    When I use Google Images, for instance entering model in the search field of Google Images and then pressing enter.
    Then I select any picture, open to a new tab this selected picture, then open a new tab by selecting the option View for this picture. Then right-click the picture and select "Save Image As".
    Again, the window that is supposed to open to locate the folder where I want to save this picture does NOT open at all, even if I wait a long time to see if it opens.
    Same problem happened with Firefox 27, 28, and now 29!! When I reverted back to Firefox 26, this problem did NOT happen anymore!
    ---THESE TWO CRITICAL BUGS DO NOT APPEAR WHEN I USE INTERNET EXPLORER 11.
    I have no idea if you will be able to reproduce these two critical BUGS but I can assure you that they are not present when I use Firefox 26 and they are present when I use Firefox 27, 28, and 29. More, be aware that I have at least 100 tabs opened but I also have this same number of tabs opened in Firefox 26 and yet I do not experience these two critical bugs when I have Firefox 26!
    Once again, these two bugs touch at two vital, critical very basic functions of Firefox and therefore I will NOT be able to use any version above 26 if these two bugs are still present, as they are present in Firefox 27, 28, and now 29!!!
    Please, make it a priority to solve these two critical bugs. Thanks.
    I did read a post related to the same issues “Firefox stops responding when trying to "save page" or "save image" | Firefox Support Forum | Mozilla Support” at https://support.mozilla.org/en-US/questions/991630?esab=a&as=aaq
    I am still reading it again to try to figure out exactly what the person did to make his problems be solved, as the post is not clear at all on what solved the problems!
    In any case, all the suggestions proposed in this post do not work and I surely cannot do a system restore when it is obvious that the two bugs do not appear in Internet Explorer.

    First, I sent an email to the author of PhotoME to inform him of the serious issues his addon caused with Firefox latest versions.
    Now, for those of you who do not have the PhotoME addon and yet experience the same problem that I had and that I described above, I suggest the following strategy.
    As PhotoME did cause these problems with Firefox latest versions, I am pretty covinved other addons probably might cause these problems too. Therefore, adopt the following method.
    Test one addon at a time to see if this particular addon is behind your Firefox issues like the ones I had.
    So, disable one addon only at a time. Then close your Firefox and restart it from scratch and see if you still have your Firefox problems. You must restart the Firefox browser from scratch. If you still have these Firefox problems, re-enable the disabled addon, restart your Firefox (again!) and repeat the same method for every single addon that you have.
    Try to be selective by choosing first addons that are more likely to cause your Firefox problems such as not very well-known or not very popular addons (like it was the case for the PhotoME addon).
    If this method works or if it does not work, report it on this web page so that others can be helped with your comments.
    I hope this method will help you because I was really upset that I had these Firefox problems and I first thought it was the fault of Firefox, only to discover later that this PhotoME addon was the culprit and had caused me such upset.

  • Problem in Saving Images in Single Folder in Nokia...

    I want to know how to transfer images keeping it in folder. I connect my E63 with USB.I copied my "Photos" folder from my laptop,then opened "File Manager" in Nokia PC suit. There I get 2 options. 1)Memory Card 2) Phone Memory.I select memory card, In that I opened Images Folder which is default in Memory card. I paste My "Photo" folder here in "Images" folder in Memory Card.After disconnecting my phone from USB cable when in my E63 I open Media->Gallery->Images I can see all my images of that folder differently and not in a single folder "Photos" which i pasted.So what should I do?I want all images in folder as I copied and pasted. Am I suppose to create new folder manualy in Phone's Media Gallary?But in phone when I go to Office->File Manager and browse through Images folder of Memory card, I find all images in same folder "Photos" which i pasted(copied), but in Gallary->Images i find all images seperately and not in folder. What should I do? Please help me.
    Solved!
    Go to Solution.

    Hey bro thanks for reply..My main purpose for asking this question was related to xplore only. I tried xplore on my E63. When we hide folder by xplore, we browse through file manager.I mean xplore shows Folders that are in File Manager.After Hiding folder, when I go to Gallery->Images, all the images in folder which I have made hiden, are visible,but...but....all the images are converted in one images. Let me explain, Suppose my folder contains 15 images named IM1,IM2,IM3....IM15. ok. After hiding folder in gallery when i See, there are total 15 images but all are IM1.Again when I unhide folder, its normal. I also tried ticking system option along with hide option in Attributes of xplore as someone suggested me to do so.But didn't worked. My main purpose for asking to move all images into single folder was this only.I didn,t knew you too would be using xplore or else i would have directly asked you this question only.
    Thanks.
    Message Edited by ved123 on 06-Aug-2009 11:52 AM

  • Sent folder not working consistently

    Last night, I sent an e-mail containing attachments from my iCloud account using Apple Mail on my Mac. The message got sent and it got saved to my Mac's sent folder.  I also sent a few other e-mails, and they also got sent and saved in my sent folder.
    Today, when I went to check my sent folder on my iPhone and on iCloud.com, all my sent messages were there except for the one I was looking for, which had the attachments.
    I have had this happen several times before - where random sent messages do not get saved to the Sent folder on iCloud.com or to my other devices.  Can someone help me resolve this issue? It is really frustrating when I can't find critical e-mails that I have sent because they don't appear in my sent folder.
    Thanks,
    N

    Hi Guys
    There is a way to fix this fully.
    I wrecked my brains for a while and even switched to Outlook as I managed to get that to work.
    Then I hit on the way yo make the Apple Mail application work as well.
    The above comments are right you will find different folders in Mail that are used for saving your sent e-mails, and these will be different between what you see on your IMAP web mail when you log in via a browser / iPad / using Mail. (I am connecting to Yahoo mail)
    Easy solution. In the Mail application on your MacBook, select the folder called "Sent" in your IMAP / Yahoo mailbox area (I no longer have it there in example below), then got to:
    Mailbox > Use This Mailbox For > Sent
    ....and hey presto that will set it to be the same mailbox as in your web IMAP account / iPad / iPhone
    Hopefully this will save you wasting a whole day on this......which is what I did
    All the best
    Rory

  • Russell Brown " Image Processor Pro " does not work under CC

    I just switched from Photoshop CS 6 to CC and use Russell Brown "Image Processor Pro". Unfortunately does not work that under CC. I also want to install the fix but we probably only applied to CS6.
    Does anyone have a solution to the problem.
    Here the German error message: https://dl.dropboxusercontent.com/u/12684660/CC_IPP.jpg
    Post translated with google Translater from the German.

    I installed Image Processor Pro quite some time ago. I extracted the extension package and just copied the two files "Image Processor Pro.xml" and "Image Processor Pro.jsx" into Photoshop's versions Presets\Scripts. I normally install things I add to Photoshop into my own folders outside any Adobe installation folder.   Image Processor Pro  is an exception because I did not want to modify X's code.  Image Processor Pro is coded in a way to find which version of Photoshop is being run from and looks for its default xml file in that version Presets\scripts\ folder.
    The script may save your modficaions to its defalt xml file into you user ID application data areas. And you can save you own Image Processor Pro presets configurations.
    I run Windows not Mac though.

  • Background image stretch in html not working if 'never remember history' is choosen

    I have a problem that did not exist in previous mozilla versions. I found the problem after installing the most recent version and after setting firefox to "never remember history"
    The problem is related to the CSS code for stretching a background image to fit the screen. The background image does stretch if "never remember history" is NOT set. Only part of the image is displayed and the rest of the background is black. I first noticed it with my website www.missionbayhighalumni.com and later found that the same problem also occurred with this website:
    http://www.htmlite.com/faq022.php or http://www.htmlite.com/faqEX004b.html
    I created several test cases with very simple code, all had the problem. The background image stretch code tests all work for other browsers and even firefox if "never remember history" is not selected. It also appears to be intermittent.

    Looks fine to me and all containers have a height:100%, so that is also correct
    You can remove all data stored in Firefox from a specific domain via "Forget About This Site" in the right-click context menu of an history entry ("History > Show All History" or "View > Sidebar > History") or via the about:permissions page.
    Using "Forget About This Site" will remove all data stored in Firefox from that domain like bookmarks, cookies, passwords, cache, history, and exceptions, so be cautious and if you have a password or other data from that domain that you do not want to lose then make sure to backup this data or make a note.
    You can't recover from this 'forget' unless you have a backup of the involved files.
    It doesn't have any lasting effect, so if you revisit such a 'forgotten' website then data from that website will be saved once again.
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Image upload/retrieve turorial not working

    The tutorial regarding image upload retrieval in the following link is not working:
    http://developers.sun.com/prodtech/javatools/jscreator/reference/tips/2/retrieve_binary_data.html
    I get the following error:
    Java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: java.security.PrivilegedActionException : Error opening socket to server localhost on port 21527 with message : null
    Thanks

    Hi Sakthi,
    Finally I managed to make it work with the following modifications:
    (1) In the servlet jdbc/Order> jdbc/Travel
    (2) The datasource names for the rowsets in the session as Travel (instead of Order)
    Another observation I made is: If you bind the url of the image component (which is on the datatable column) to a (for example applicationbean) property which retruns the necessary url, it is very convinent to handle the datatable layout visually. (Otherwise if you go to the datatable layout it shows some error message popup)
    Thanks.

  • Digial Filing, Scan to Network Folder not working on new Asus Windows 8.1 laptop

    I've having difficulty setting up Digital Filing, Scan to Network Folder on my new Asus Windows 8.1 laptop. I'm using a HP Officejet Pro 8500 A909g Series.
    It seems to setup correctly with no errors. However, all scans end up with a zero file size PDF. Trying to open them gives the error: “Adobe reader could not open 'scan.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded).
    I've previously had no problem setting up network folders to scan to on three other computers, all of which were running Windows 7, not 8.1. Digital Filling continues to work correctly on each of these older computers, but try as I might, I'm unable to get this feature to work with my new Windows 8.1 laptop. I've tried with both the “Solution Center” software and the embedded web access.
    I've compared all the setting I could think of to the previous Network Folders that work and cannot find any differences.
    The workaround, scanning from my laptop using the Solution Center software (rather from the printer console using digital filing, scan to network folder) works perfectly. As far as I can tell, all other features are working.

    The STUDIO is an older laptop running Windows 7. Scanning to network folders works perfectly as long as the folder chosen is in the \Users\Public folder.
    I do not know nor have not needed the Windows password on this laptop. It's been years since I set up this laptop; I don't know if it even has a password.
    The ASUS is a new laptop running Windows 8.1. So far, I have been unable to scan to a network folder; all the resulting PDFs are zero bytes.
    The network folders are all in Network Path: \\ASUS\Users\Public; if I try to create them outside this folder, I'm unable to even finish setting up the network scan.
    I DO know the Windows username and password for this new laptop.
    Username: [email protected]
    Password: Gpaork3edrecnlau
    I've compared the properties on the folders involved on the two laptops by right-clicking them. So far as I can tell, everything is set exactly the same on both computers.
    Below are my experiments – the first three on my older Windows 7 laptop all work perfectly. All the rest on my new Windows 8.1 computer do not work.
    ==================================================================
    Entry 1
    Display Name: Scans on Studio
    Network Path: \\STUDIO\Users\Public\Public Scans on Studio
    (C:\Users\Public\Public Scans on Studio)
    Username: STUDIO\Edward
    Password: ???
    Pin: blank
    SCANNING TO FOLDER WORKS PERFECTLY
    ==================================================================
    Entry 2
    Display Name: ScanTestDell
    Network Path: \\STUDIO\Users\Public\ScanTestDell
    (C:\Users\Public\ScanTestDell)
    Username: blank
    Password: blank
    Pin: blank
    SCANNING TO FOLDER WORKS PERFECTLY
    ==================================================================
    Entry 3
    Display Name: ScanTestDell2
    Network Path: \\STUDIO\Users\Public\ScanTestDell2
    (C:\Users\Public\ScanTestDell2)
    Username: STUDIO\Edward
    Password: blank
    Pin: blank
    SCANNING TO FOLDER WORKS PERFECTLY
    ==================================================================
    Entry 4
    Display Name: AsusTest1
    Network Path: \\ASUS\Users\Public\1
    (C:\Users\Public\1)
    Username: ASUS\[email protected]
    Password: Gpaork3edrecnlau
    Pin: blank
    SCANNING TO FOLDER WILL NOT WORK
    ==================================================================
    Entry 5
    Display Name: AsusTest2
    Network Path: \\ASUS\Users\Public\2
    (C:\Users\Public\2)
    Username: [email protected]
    Password: Gpaork3edrecnlau
    Pin: blank
    SCANNING TO FOLDER WILL NOT WORK
    ==================================================================
    Entry 6
    Display Name: AsusTest3
    Network Path: \\ASUS\Users\Public\3
    (C:\Users\Public\3)
    Username: blank
    Password: blank
    Pin: blank
    SCANNING TO FOLDER WILL NOT WORK
    ==================================================================
    Entry 7
    Display Name: AsusTest4
    Network Path: \\ASUS\Users\Public\4
    (C:\Users\Public\4)
    Username: Edward
    Password: Gpaork3edrecnlau
    Pin: blank
    SCANNING TO FOLDER WILL NOT WORK
    ==================================================================
    Entry 8
    Display Name: AsusTest5
    Network Path: \\ASUS\Users\Public\5
    (C:\Users\Public\5)
    Username: ASUS\Edward
    Password: blank
    Pin: blank
    SCANNING TO FOLDER WILL NOT WORK
    ==================================================================
    Entry 9
    Display Name: AsusTest6
    Network Path: \\ASUS\Users\Public\6
    (C:\Users\Public\6)
    Username: ASUS\Edward
    Password: Gpaork3edrecnlau
    Pin: blank
    SCANNING TO FOLDER WILL NOT WORK
    ==================================================================
    Entry 10
    Display Name: AsusTest7
    Network Path: \\ASUS\Users\Public\7
    (C:\Users\Public\7)
    Username: ASUS\Edward
    Password: blank
    Pin: blank
    SCANNING TO FOLDER WILL NOT WORK

  • Media Folder not working

    k, i'm at a loss on this one.
    from what i have read the media folder that you designate is where itunes will store and catalog all your music/video etc. c:\...\media folder\ then it will have music and video and podcast etc.
    i want it to be C:\docs\ to my music/video/podcasts etc.. if i set my docs folder to be my media folder it just starts cataloging my artists, no \music\artists.
    if i make my media folder c:\docs\music, when i import a cd it starts cataloging all my music in c:\doc\music\music\ artists... from what i gather itunes is cataloging correctly here. but when i try to eliminate the music\music by making my media folder just docs, it is not working correctly.
    sorry if this is kinda long winded and confusing, but i am really frustrated at such a simple thing not working correctly.

    finally after 3 hours of mucking around i found it. although i had itunes set to organize my music automatically. the fix was telling it to re-organize it... stupid itunes...

  • Sidebar folder not working

    We have the following setup :
    - Lion Server (up to date)
    - MacBook Air Lion uptodate
    In the finder we connect to the server from Shared, this works fine.
    When i want to add a folder to my sidebar that is inside my share it first workes fine, but when i disconnect the server and then connect tru one of te folders, most of the time the first folder i selct works, but other folders that are on the same share are not working anymore. I hace to remove the and add the again to the sidebar.
    Very frustrating.

    I wanted to know how to remover folders that were not smart folders. Your reply to Isjessop on May 10
    provided the right answer. Thanks pal.

  • Latest USB Image (2009.08) does not work

    So I downloaded the archlinux-2009.08-netinstall-i686.img  USB image and UNetBootin for Windows, and it did not install the image correctly to my USB drive.
    I have plenty of space (it's an 8GB drive), and I have successfully put a number of other distros on the drive, and all while using UNetBootin on Windows.
    I even tried installing it on my linux machine using the dd command and the instructions on this page: http://wiki.archlinux.org/index.php/Ins … _USB_stick
    Anyone else having these problems?
    Can't have fun trying Arch out if I can't even put it on my install media

    Ashren wrote:
    Try downloading the image again it may be corrupt. Have you checked md5sum?
    You can also try the testing builds found here: http://bbs.archlinux.org/viewtopic.php?id=94687
    or tpowa's images: http://bbs.archlinux.org/viewtopic.php?id=95503v
    I tried the April 19th image, which according to what I read replaces the .img USB image.  It worked with unetbootin, but once I booted into it, there was some error (can't remember it, gonna have to try it again to see the actual error).
    tomk wrote:How exactly did this not work? Was there an error message? What was the output in response to the dd command?
    Can't remember, didn't write it down...but it is inconsequential as the image wasn't working with any method.

Maybe you are looking for