mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2024-12-21 01:50:24 +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);
|