blob

How to upload a text string directly to Windows Azure Blob from the browser using javascript

吃可爱长大的小学妹 提交于 2019-12-24 10:39:11
问题 I would like to upload from a web browser a text/html string as an Azure blob directly to Azure storage (without first going thru the Azure VM/webserver) using browser side javascript. From my research, I understand that one can use Azure REST API + Shared Access Signatures to achieve this from a Silverlight client or thru an MVC 3 view. ( here is the link for controls using SilverLight/MVC3 : http://code.msdn.microsoft.com/silverlight/Silverlight-Azure-Blob-3b773e26#content). I also found a

How I can request a local url in my app engine application?

本秂侑毒 提交于 2019-12-24 09:27:34
问题 I am using Blobs to store json files for my application. What I am trying to achieve is to request an internal url of my application in order to get the relevant file. I have tried urllib, urllib2, urlfetch but every time I am getting a 5 second DeadlineExceededError: 5 timed out error. Is there a way to retrieve my blob in my get request or an alternative for retrieving my data? 回答1: You don't need to make HTTP requests to yourself in order to read data from the blobstore - you can simply

Why my BLOB field is still 13B - what I am doing wrong?

回眸只為那壹抹淺笑 提交于 2019-12-24 08:03:19
问题 I would like to store the data in the MySQL BLOB field. I am using the following code: int length = (int)fs.Length; buffer = new byte[length]; int count; int sum = 0; while ((count = fs.Read(buffer, sum, length - sum)) > 0) sum += count; prikaz.CommandText = "INSERT INTO attachments (ReferenceID,Filename,File) VALUES ('" + referenceID + "','test','" + buffer + "')"; prikaz.ExecuteNonQuery(); But in the database, the BLOB field has always 13B. Could you please advice? Thanks! 回答1: You're

How to access Azure blob using SAS in C#

霸气de小男生 提交于 2019-12-24 07:56:59
问题 When I am trying to create / access Azure blob using Ad-hoc Shared Access Signature (SAS) I am getting "The remote server returned an error: (403) Forbidden." error. Can someone help me to identify, what is going wrong with this code. // Calling this function from Main(). public void uploadToBlob() { string content = "Hello World - Content of the file"; string fileName = "TestFile"; UploadFileToAzureBlobStorage(content, fileName); } void UploadFileToAzureBlobStorage(string content, string

Fetching files stored in azure container using SSIS - Execute process task

淺唱寂寞╮ 提交于 2019-12-24 07:25:53
问题 Can any one suggest simple example to fetch the file from my windows azure container and place the file on local machine using SSIS - execute process task 回答1: Based on this article, it seems that standard FTP is an option for you. To simplify your life, I'd create an ftp file that performs the download operations and then call that from your Execute Process Task via ftp. Content of the batch would be approximately Executable C:\Windows\System32\ftp.exe Arguments -s:"C:\myFTPcommands.txt'

Copy files from SFTP Server to Blob Storage with Logic App

一个人想着一个人 提交于 2019-12-24 06:55:32
问题 I want to copy files from an SFTP server to an blob storage by using a logic app. The logic app is triggered by a "recurrence" block every 3 minutes and checks which files are on the server in order to copy them. To check which files are on the server I use the "list files in folder" block. The copying itself is performed by a pipeline run. This works fine so far, but I'm facing one problem. In case one file is still in the uploading process on the sftp server during the logic app is

Copy files from SFTP Server to Blob Storage with Logic App

放肆的年华 提交于 2019-12-24 06:53:07
问题 I want to copy files from an SFTP server to an blob storage by using a logic app. The logic app is triggered by a "recurrence" block every 3 minutes and checks which files are on the server in order to copy them. To check which files are on the server I use the "list files in folder" block. The copying itself is performed by a pipeline run. This works fine so far, but I'm facing one problem. In case one file is still in the uploading process on the sftp server during the logic app is

Extract Oracle LONG to string in VBA

女生的网名这么多〃 提交于 2019-12-24 06:47:26
问题 I'm having trouble getting a field of LONG out of the database and into my Excel (VBA + ADO) application. I wonder if anyone could help? Doing this has no effect at all (casting to a string, or not): myString = dataset!long_field I tried the GetChunk method, which is supposed to do what I'm hoping: myString = CStr(dataset!long_field.GetChunk(1000)) This does get something, but it's not the data I'm expecting (it's usually some garbled mess). What's weird is that, if I try running this in the

Unable to print PDF file in Edge browser

不打扰是莪最后的温柔 提交于 2019-12-24 06:44:41
问题 Trying to print PDF file retrieved from server. Approach 1 Retrieve PDF from server via AJAX Create Blob ( URL.createObjectURL(pdfFile) ) Set blob ObjectUrl as a source to iframe Print iframe ( iframeContentWindow.document.execCommand('print', false, null) ) Problem Not working in Edge since it has issue link1, link2, link3 Approach 2 Set URL from which server returns PDF as a source to iframe Print iframe Problem Endpoint which returns PDF requires authorization, as i see there is no way to

How to dump the large object data from Postgres 9.4, and then import it to Postgres8.x?

拟墨画扇 提交于 2019-12-24 06:39:00
问题 I used pg_dump to export the data including large objects (LO) from Postgres 9.4 like this: $ pg_dump fhir -O -b > fhir.sql The LO statements in my generated fhir.sql are like this: SET standard_conforming_strings = on; SELECT pg_catalog.lowrite(0, '\x1f8b0800000000000000a5903b6ec3300c86efa2d9b1dad5a728daa2'); When I executed \i fhir.sql in my Postgres8.2, I got this error: ERROR: invalid input syntax for type bytea When I SET standard_conforming_strings = off , the data was inserted, but I