Skip to content

Instantly share code, notes, and snippets.

@originalusername123
originalusername123 / ini.rb
Last active May 20, 2018 20:25
caracal-embedimage-windows-simplest-example
APP_ROOT = File.dirname(__FILE__)
$:.unshift(File.join(APP_ROOT, 'lib'))
require 'caracal'
Caracal::Document.save "superproject.docx" do |docx|
require 'base64'
data = File.open('lib\imagejpg.jpg', 'rb').read