amazon web services - How to use RandomAccessFile through AWS lambda function? -
we package few resource files in package. though can access through inputstream through getresourceasstream, how can access randomaccessfile? believe file zipped , may not feasible access randomaccessfile, there alternative achieve said functionality?
got working using below line:
filename = getclass().getresource(filename).getfile();
one can access randomaccessfile using:
randomaccessfile raf = new randomaccessfile(filename,"r");
so if filename "/abc.properties" under resources folder, appending above work fine. appends "/var/task/"
Comments
Post a Comment