22. High-level API Reference
290
www.yoctopuce.com
YDisplay
display
→
upload()
Uploads an arbitrary file (for instance a GIF file) to the display, to the specified full path name.
js
function upload(
pathname
,
content
)
cpp
int upload( string
pathname
, string
content
)
m
-(int) upload : (NSString*)
pathname
: (NSData*)
content
pas
function upload(
pathname
: string,
content
: TByteArray): LongInt
vb
procedure upload( )
cs
int upload( string
pathname
)
java
int upload( String
pathname
, byte[]
content
)
uwp
Task<int> upload( string
pathname
)
py
def upload(
pathname
,
content
)
php
function upload(
$pathname
,
$content
)
es
function upload(
pathname
,
content
)
cmd
YDisplay
target
upload
pathname
content
If a file already exists with the same path name, its content is overwritten.
Parameters :
pathname
path and name of the new file to create
content
binary buffer with the content to set
Returns :
YAPI_SUCCESS
if the call succeeds.
On failure, throws an exception or returns a negative error code.
Summary of Contents for Yocto-Display
Page 1: ...Yocto Display User Manual...
Page 2: ......
Page 40: ...34 www yoctopuce com...
Page 52: ...46 www yoctopuce com...
Page 84: ...78 www yoctopuce com...
Page 92: ...86 www yoctopuce com...
Page 130: ...124 www yoctopuce com...
Page 422: ...416 www yoctopuce com...