簡體   English   中英

將圖片base64從url加載到src

[英]Load image base64 from url to src

這是的延續問題

所以我需要從URL加載img(base64): http : //test-pb.linuxpl.info/rejestracja-darmowa?task=show_captcha_image

我的hmtl網站

<img align="middle" id="captcha_image" title="Please enter the code you see in the image into Security code textbox" src="http://test-pb.linuxpl.info/rejestracja-darmowa?task=show_captcha_image">

您的服務器中的圖像數據以純文本格式傳輸,而不是尋找解決原始問題的解決方法,因此在發送圖像數據之前添加以下內容

header("Content-Type: image/jpeg");

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM