خرید بک لینک

Vote count: 0

I've developed a Web Service in Java, and my client will upload an .ini file to the service using the API which definition is something like

public Response PostStreamInfo(@Context HttpServletRequest request,
        @PathParam("UniqueId") String uniqueId, InputStream inputStream) 
        {
            /* my code here */
        }

Now I want to convert the inputStream back into .ini format, and retreive some value. However, all methods I found to get .ini content is read from real file, none of them talk about how to transfer from inputstream.

Is my goal possible? Because I don't want to Store the .ini file, Read it, and Delete it only for 1 value I need, I think that's a waste of time. Or should I just use Json format instead of InputStream to transfer the content? Thanks!

asked 53 secs ago

برچسب: نویسنده: استخدام کار تاريخ: چهارشنبه 11 فروردين 1395 ساعت: 9:36

صفحه بندی