mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2024-12-18 23:48:56 +02:00
16 lines
557 B
Plaintext
16 lines
557 B
Plaintext
Parameters = GetVKParameters();
|
|
ImageDescription = "AutoTestImage";
|
|
AlbumID = FunctionParameters["VK_AlbumID"];
|
|
|
|
Image = FunctionParameters["Picture"]; // URL, Path to file or Binary Data
|
|
TFN = GetTempFileName("png");
|
|
CopyFile(Image, TFN);
|
|
|
|
Image = New BinaryData(TFN);
|
|
|
|
Result = OPI_VK.SaveImageToAlbum(AlbumID, Image, ImageDescription, Parameters);
|
|
|
|
OPI_TestDataRetrieval.WriteLog(Result, "SaveImageToAlbum", "VK");
|
|
|
|
Result = OPI_VK.SaveImageToAlbum(AlbumID, TFN, ImageDescription, Parameters);
|