![]() ![]() The code that calls the SetContent method seems to be exactly the same and file seems to be correct since a new file with zero bytes is created at the correct location.ĭoes any one have any suggestion please? I debugged this code dozens of times and I cannot see the problem. HttpPostedFileBase newFile = Request.Files as HttpPostedFileBase ĬontentService service = new ContentService() īlog.Image = service.UploadFile(newFile, string.Format("",, blog.RowKey)) īefore the image file is uploaded to the storage, the Property InputStream from the HttpPostedFileBase appears to be fine (the size of the of image corresponds to what is expected! And no exceptions are thrown).Īnd the really strange thing is that this works perfectly in other cases (uploading Power Points or even other images from the Worker role). The above code is called by this code. Int indexBar = ('\\') įilename = (indexBar 1) įilename = file.FileName Ĭ(file, Helper.CombinePath(uploadPath, filename), true) Public string UploadFile(HttpPostedFileBase file, string uploadPath) Var blob = blobContainer.GetBlobReference(filename) ī = file.ContentType ī = "application/octet-stream" Public void SetContent(HttpPostedFileBase file, string filename, bool overwrite)ĬloudBlobContainer blobContainer = GetContainer() The following is the code that I am using: // These two methods belong to the ContentService class used to upload When I go to cloud storage studio, the file is there, but with a size of 0 (zero) bytes. This antivirus file is for iOS and won’t work on your machine.When I upload an image file to a blob, the image is uploaded apparently successfully (no errors). ![]() This antivirus file is for Android and won’t work on your machine. This antivirus file is for Mac and won’t work on your machine. This antivirus file is for PC and won’t work on your machine. This VPN file is for iOS and won't work on your Android. This VPN file is for iOS and won't work on your Mac. This VPN file is for iOS and won't work on your PC. This VPN file is for Android and won't work on your iOS. This VPN file is for Android and won't work on your Mac. This VPN file is for Android and won't work on your PC. Click the App Store button to get antivirus for iOS. Click the Google Play button to get antivirus for Android. Would you like this app for Windows or Mac? Looks like you’re using Android. This antivirus file won't work on your iOS. Would you like this app for Mac or Windows? Looks like you’re using Android. This antivirus file is for iOS and won’t work on your machine. This file is for iOS and won't work on your Android. This file is for iOS and won't work on your Mac. This file is for iOS and won't work on your PC. This file is for Android and won't work on your iOS. This file is for Android and won't work on your Mac. This file is for Android and won't work on your PC. I have tested uploading the failing files to a number of different servers with the same negative result so it can't be a server issue. Small files will end up empty on the server while larger files, approx. Click the App Store button to get antivirus for iOS. I have a similar problem with latest Filezilla on Mac OS High Sierra. ![]() This antivirus file is for iOS and won't work on your Android. This antivirus file is for iOS and won't work on your Mac. This antivirus file is for iOS and won't work on your PC. This antivirus file is for Android and won't work on your iOS. This antivirus file is for Android and won't work on your Mac. This antivirus file is for Android and won't work on your PC. ![]()
0 Comments
Leave a Reply. |