E
Eduardo Aceves Ledezma
Guest
Hi! Right now, we're trying to control the access of some images/files that are stored in another server. We're interested that, with an image link, that Request Builder downloads it and then, using HttpResponse, Write it so the user can see it as a transparent image link. For example: server1.com?image=whatever.png (This is an existing, and valid image link) server2.com/web/callserver1?image=whatever.png (We're using a webhandler) Right now, the code is something like: ASSIGN vcRutaLogo = "voorttbtpnwpqbhzph.png". //Image filename ASSIGN voCredReq = NEW Credentials('domain','root','demopassword'); //Credentials for Basic Auth voUriReq = URI
arse(" localhost:8810/.../logo") . //Server 1 file URL voUriReq:AddQuery("ruta",vcRutaLogo). //Server1 Querystring for getting image ASSIGN voReqBody = RequestBuilder:Get(voUriReq):AcceptJson() :UsingBasicAuthentication(voCredReq):Request voRespBody = HttpClient:Instance():Execute(voReqBody). At this part, it's suppossed than the entity would have the data of the image, but instead voRespBody:Entity is equal to ? (Unknown). Also, I've checked voRespBody:StatusCode and it's returning a 200 (OK). Is there something I'm missing? or is there a limit with the response size? Regards!
Continue reading...
Continue reading...