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

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

php - Cannot override Laravel Spark authentication with own implementation -

What is happening when Matlab is starting a "parallel pool"? -