1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-02-03 13:22:19 +02:00
OpenIntegrations/docs/en/examples/VK/SavePictureToAlbum.txt
2024-08-13 14:04:54 +00:00

14 lines
499 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);
Result = OPI_VK.SaveImageToAlbum(AlbumID, TFN, ImageDescription, Parameters);