-
Notifications
You must be signed in to change notification settings - Fork 43
azurePutBlob does not work with files #42
Comments
@kjohnson4 - Yes the local file function had some bugs and was removed for the initial release. I will remove the parameter from the function and documentation until it can get implemented correctly. Thanks for pointing out. The azureBlobPut of an object from contents should work. As per your other post, can you confirm that you are not using classic mode and that other blob functions are working. Thanks |
Sorry about that, I missed notes that the file function was bugged. Other blob functions are working. I can Get (read) blobs and manipulate the data, and I'm trying to write those changes back, but can't seem to get this working. All our resources are managed, not classic, and veirfied that this SA was created new in RM, not in classic and moved. |
Using your example on other issue posting: I noticed that flightfile is stored in "Values" of the RStudio environment. However all the files I'm reading in (using read.table, read.csv) will end up placing the result in the "Data" section, as the reading stores the file in a dataframe. Would this be causing an issue to put this data into Blob? |
Hi, I am having a similar issue, when trying to pass in a dataframe for content I surprisingly get an authentication error:
However if the data is passed in as a simple one row character by coercing the dataframe with |
Hello, this is an important issue, is this being worked on? Thanks. |
Any updates on this issue? Getting same problem as @Sebs030. |
Not able to store an pdf file using azurePutBlob. it gives authentication error. any suggestion how to store pdf file in blob using R |
I also have trouble uploading a dataframe. A solution that worked for me was to convert the dataframe to JSON. json_USArrests<- USArrests %>%
as_tibble() %>%
jsonlite::toJSON() The |
I've read in a csv file (tmpFile), and now want to write that out to blob. Running this:
azurePutBlob(sc, blob = "tsv.txt", file = tmpFile)
Returns:
[1] "blob: directory/tsv.txt Saved: 1 bytes written"
And if I look at the blob file, it has just 1 character in it: '-'.
Looking at source, there is no handling of the file param. If
contents
is blank, it gets that character '-', and thats it.I also tried:
azurePutBlob(sc, blob = "tsv.txt", contents = tmpFile)
And it run for awhile, looks like its uploading the data:
[1] "blob: directory/tsv.txt Saved: 545 bytes written" "blob: directory/tsv.txt Saved: 545 bytes written" [3] "blob: directory/tsv.txt Saved: 699 bytes written" "blob: directory/tsv.txt Saved: 545 bytes written" [5] "blob: directory/tsv.txt Saved: 545 bytes written" "blob: directory/tsv.txt Saved: 706 bytes written"
it goes up to [37] but then this is output and it stops uploading and the blob is never created:
Warning messages:
1: In if (nchar(contents) == 0) contents <- "-" :
the condition has length > 1 and only the first element will be used
2: In charToRaw(object) :
argument should be a character vector of length 1
all but the first element will be ignored
The text was updated successfully, but these errors were encountered: